import dayjs from "dayjs";
export function fill12Mounth(arr = [], pname) {
    if(!arr?.length)return;
    let data = [...arr];  
    for(let i = data.length ; i < 12; i++) {        
        data.push({
            month: (i+1) + '月',
            value: 0
        }) 
    } 
    return data
}

export function past12Hours() {
    let arr = []  
    for(let i = 12; i >= 0; i--) { 
        arr.push({
            value: 0,
            time: dayjs().subtract(i,'hour').format("HH:00")
        })
    } 
    return arr
}